#include "myobjectcreator.h"
#include "myboundary.h"
#include "mywindpoint.h"
#include <iostream>
using namespace std;

Boundary* myObjectCreator::CreateBoundary() const
{
    return new myBoundary;
}

Boundary* myObjectCreator::CreateWorldBoundary() const
{
    myBoundary* ptr = new myBoundary;
    return ptr;
}

Boundary* myObjectCreator::CreateBoundary(const Line& line)
{
    myBoundary* ptr = new myBoundary;
    ptr->SetLine(line);
    return ptr;
}

WindPoint* myObjectCreator::CreateWindPoint() const
{
    return new myWindPoint(Point(1,1));
}

WindPoint* myObjectCreator::CreateWindPoint(const Point& position, const Speed& speed, const Acceleration& acceleration)
{
    myWindPoint* ptr = new myWindPoint(position);
    ptr->SetSpeed(speed);
    ptr->SetAcceleration(acceleration);
    return ptr;
}
